package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestHost;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;
import com.jinsilu.freight.other.AppConfig;

/**
 * 获取保险名称列表
 *
 * @author yangyang
 * @time 2021-01-08 14:24
 */
public class GetInsuranceNameApi implements IRequestApi, IRequestHost, IRequestType {

    private String companyName;
    private String pageNum;
    private String pageSize;

    @Override
    public String getApi() {
        return "api/dict/insurance/company";
    }


    @Override
    public String getHost() {
        return AppConfig.getBaseUrl();
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }

    public GetInsuranceNameApi setCompanyName(String companyName) {
        this.companyName = companyName;
        return this;
    }

    public GetInsuranceNameApi setPageNum(String pageNum) {
        this.pageNum = pageNum;
        return this;
    }

    public GetInsuranceNameApi setPageSize(String pageSize) {
        this.pageSize = pageSize;
        return this;
    }
}
